import request from '@/utils/request'
import { getToken } from '@/utils/auth'
const qs = require('qs')

export function getDemo(params) {
  console.log("current token = " + getToken())
  params = {'name' : 'test get', 'age':18}
  return request.get('/testGet', {params})
}

export function postDemo(params) {
  console.log("current token = " + getToken())
  params = {'name' : 'test post'}
  return request.post('/testPost', params)
}
